<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台主界面</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href='<?php echo $static_url; ?>common/css/admin.css' type="text/css" />
<script src="<?php echo $static_url; ?>common/js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="<?php echo $static_url; ?>common/js/common.js" type="text/javascript"></script>

<link rel="stylesheet" href='<?php echo $static_url; ?>common/css/daily_record.css' type="text/css" />
</head>
<body class="body_background">
	<div>
		<?php echo $header_nav; ?>
		<div class="common_container clearfix">
			<div class="crumbs">
				<span class="catalogue">日志</span>
				<a href="/www/admin/log/login_record.php">登录记录</a> |
				<a href="/www/admin/log/login_error.php">密码错误</a> |
				<a href="/www/admin/log/login_today.php">今日登录</a> |
				<a href="/www/admin/log/online_status.php">在线状态</a> |
				<a href="/www/admin/log/online_action.php">在线动作</a>
			</div>
			<div class="daily_record_menu" id="side_container">
				<div class="closeSidebar"><i title="点击隐藏左菜单" class="icon_close"></i></div>
				<ul class="record_menu">
					<li style="font-size:14px;">日志</li>
					<li><a href="/www/admin/log/login_record.php"> └ 登录记录</a></li>
					<li><a href="/www/admin/log/login_error.php"> └ 密码错误</a></li>
					<li><a href="/www/admin/log/login_today.php"> └ 今日登录</a></li>
					<li><a href="/www/admin/log/online_status.php"> └ 在线状态</a></li>
					<li><a href="/www/admin/log/online_action.php"> └ 在线动作</a></li>
				</ul>
			</div>
			<div class="sidebar_container_hidden" style="margin-top:10px;margin-right:5px;" >
				<div class="openSidebar"><i title="点击显示左菜单" class="icon_open"></i></div>
			</div>
			<div class="daily_record_main" id="main_container">
				<table class="record_tips"><tr><td>在线状态（查询时间：<?php echo date('Y-m-d H:i:s', $time); ?>）</td></tr></table>
				<table class="record_table">
					<thead>
						<tr>
							<th>用户名</th>
							<th>当前状态</th>
							<th>最后操作时间</th>
						</tr>
					</thead>
					<tbody>
						<?php foreach($online_status_rs as $online_status): ?>
						<tr>
							<td align="center"><?php echo $online_status['username']; ?></td>
							<td align="center">在线</td>
							<td align="center"><?php echo date('Y-m-d H:i:s', $online_status['updated']); ?></td>
						</tr>
						<?php endforeach; ?>
						<?php if( $page_html != '' ): ?>
						<tr>
							<td colspan="3" class="navPage"><?php echo $page_html; ?></td>
						</tr>
						<?php endif; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>